/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package SensorImpl;

import SensorInterface.ISensor;
import DTO.SensorDTO;

/**
 *
 * @author Administrator
 */
public class BaseSensor implements ISensor{    
    private int number;
    private String location;
    private String sensorSign;

    public String getSensorSign() {
        return sensorSign;
    }

    public void setSensorSign(String sensorSign) {
        this.sensorSign = sensorSign;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }   

    @Override
    public SensorDTO generateData() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void printData(SensorDTO sdto) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public boolean isMatchSign(SensorDTO sdto) {
        return this.sensorSign.equalsIgnoreCase(sdto.getSensorSign());
    }

}
